GenerateObjectResult

data class GenerateObjectResult<TOutput>(val value: TOutput, val text: String, val reasoning: String? = null, val finishReason: FinishReason, val usage: Usage, val warnings: List<CallWarning> = emptyList(), val request: LanguageModelRequestMetadata = LanguageModelRequestMetadata(), val response: LanguageModelResponseMetadata = LanguageModelResponseMetadata(), val providerMetadata: Map<String, JsonElement> = emptyMap())

Constructors

Link copied to clipboard
constructor(value: TOutput, text: String, reasoning: String? = null, finishReason: FinishReason, usage: Usage, warnings: List<CallWarning> = emptyList(), request: LanguageModelRequestMetadata = LanguageModelRequestMetadata(), response: LanguageModelResponseMetadata = LanguageModelResponseMetadata(), providerMetadata: Map<String, JsonElement> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val providerMetadata: Map<String, JsonElement>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> GenerateObjectResult<*>.providerMetadataAs(provider: String): T?
fun <T> GenerateObjectResult<*>.providerMetadataAs(provider: String, serializer: KSerializer<T>): T?